﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000B63 RID: 2915
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class MonopolyActionResult : IMessage<MonopolyActionResult>, IMessage, IEquatable<MonopolyActionResult>, IDeepCloneable<MonopolyActionResult>, IBufferMessage
	{
		// Token: 0x170024D2 RID: 9426
		// (get) Token: 0x06008269 RID: 33385 RVA: 0x0015C263 File Offset: 0x0015A463
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<MonopolyActionResult> Parser
		{
			get
			{
				return MonopolyActionResult._parser;
			}
		}

		// Token: 0x170024D3 RID: 9427
		// (get) Token: 0x0600826A RID: 33386 RVA: 0x0015C26A File Offset: 0x0015A46A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return MonopolyActionResultReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170024D4 RID: 9428
		// (get) Token: 0x0600826B RID: 33387 RVA: 0x0015C27C File Offset: 0x0015A47C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return MonopolyActionResult.Descriptor;
			}
		}

		// Token: 0x0600826C RID: 33388 RVA: 0x0015C283 File Offset: 0x0015A483
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonopolyActionResult()
		{
		}

		// Token: 0x0600826D RID: 33389 RVA: 0x0015C28C File Offset: 0x0015A48C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonopolyActionResult(MonopolyActionResult other) : this()
		{
			this.effectType_ = other.effectType_;
			this.triggerCellId_ = other.triggerCellId_;
			this.sourceType_ = other.sourceType_;
			this.clickCellId_ = other.clickCellId_;
			this.clickMapId_ = other.clickMapId_;
			this.detail_ = ((other.detail_ != null) ? other.detail_.Clone() : null);
			this.triggerMapId_ = other.triggerMapId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600826E RID: 33390 RVA: 0x0015C314 File Offset: 0x0015A514
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public MonopolyActionResult Clone()
		{
			return new MonopolyActionResult(this);
		}

		// Token: 0x170024D5 RID: 9429
		// (get) Token: 0x0600826F RID: 33391 RVA: 0x0015C31C File Offset: 0x0015A51C
		// (set) Token: 0x06008270 RID: 33392 RVA: 0x0015C324 File Offset: 0x0015A524
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint EffectType
		{
			get
			{
				return this.effectType_;
			}
			set
			{
				this.effectType_ = value;
			}
		}

		// Token: 0x170024D6 RID: 9430
		// (get) Token: 0x06008271 RID: 33393 RVA: 0x0015C32D File Offset: 0x0015A52D
		// (set) Token: 0x06008272 RID: 33394 RVA: 0x0015C335 File Offset: 0x0015A535
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TriggerCellId
		{
			get
			{
				return this.triggerCellId_;
			}
			set
			{
				this.triggerCellId_ = value;
			}
		}

		// Token: 0x170024D7 RID: 9431
		// (get) Token: 0x06008273 RID: 33395 RVA: 0x0015C33E File Offset: 0x0015A53E
		// (set) Token: 0x06008274 RID: 33396 RVA: 0x0015C346 File Offset: 0x0015A546
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public CABGOHOFGBM SourceType
		{
			get
			{
				return this.sourceType_;
			}
			set
			{
				this.sourceType_ = value;
			}
		}

		// Token: 0x170024D8 RID: 9432
		// (get) Token: 0x06008275 RID: 33397 RVA: 0x0015C34F File Offset: 0x0015A54F
		// (set) Token: 0x06008276 RID: 33398 RVA: 0x0015C357 File Offset: 0x0015A557
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ClickCellId
		{
			get
			{
				return this.clickCellId_;
			}
			set
			{
				this.clickCellId_ = value;
			}
		}

		// Token: 0x170024D9 RID: 9433
		// (get) Token: 0x06008277 RID: 33399 RVA: 0x0015C360 File Offset: 0x0015A560
		// (set) Token: 0x06008278 RID: 33400 RVA: 0x0015C368 File Offset: 0x0015A568
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ClickMapId
		{
			get
			{
				return this.clickMapId_;
			}
			set
			{
				this.clickMapId_ = value;
			}
		}

		// Token: 0x170024DA RID: 9434
		// (get) Token: 0x06008279 RID: 33401 RVA: 0x0015C371 File Offset: 0x0015A571
		// (set) Token: 0x0600827A RID: 33402 RVA: 0x0015C379 File Offset: 0x0015A579
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LOMAPIKBDJF Detail
		{
			get
			{
				return this.detail_;
			}
			set
			{
				this.detail_ = value;
			}
		}

		// Token: 0x170024DB RID: 9435
		// (get) Token: 0x0600827B RID: 33403 RVA: 0x0015C382 File Offset: 0x0015A582
		// (set) Token: 0x0600827C RID: 33404 RVA: 0x0015C38A File Offset: 0x0015A58A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint TriggerMapId
		{
			get
			{
				return this.triggerMapId_;
			}
			set
			{
				this.triggerMapId_ = value;
			}
		}

		// Token: 0x0600827D RID: 33405 RVA: 0x0015C393 File Offset: 0x0015A593
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as MonopolyActionResult);
		}

		// Token: 0x0600827E RID: 33406 RVA: 0x0015C3A4 File Offset: 0x0015A5A4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(MonopolyActionResult other)
		{
			return other != null && (other == this || (this.EffectType == other.EffectType && this.TriggerCellId == other.TriggerCellId && this.SourceType == other.SourceType && this.ClickCellId == other.ClickCellId && this.ClickMapId == other.ClickMapId && object.Equals(this.Detail, other.Detail) && this.TriggerMapId == other.TriggerMapId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600827F RID: 33407 RVA: 0x0015C444 File Offset: 0x0015A644
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.EffectType != 0U)
			{
				num ^= this.EffectType.GetHashCode();
			}
			if (this.TriggerCellId != 0U)
			{
				num ^= this.TriggerCellId.GetHashCode();
			}
			if (this.SourceType != CABGOHOFGBM.MonopolyActionResultSourceTypeNone)
			{
				num ^= this.SourceType.GetHashCode();
			}
			if (this.ClickCellId != 0U)
			{
				num ^= this.ClickCellId.GetHashCode();
			}
			if (this.ClickMapId != 0U)
			{
				num ^= this.ClickMapId.GetHashCode();
			}
			if (this.detail_ != null)
			{
				num ^= this.Detail.GetHashCode();
			}
			if (this.TriggerMapId != 0U)
			{
				num ^= this.TriggerMapId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06008280 RID: 33408 RVA: 0x0015C51C File Offset: 0x0015A71C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06008281 RID: 33409 RVA: 0x0015C524 File Offset: 0x0015A724
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06008282 RID: 33410 RVA: 0x0015C530 File Offset: 0x0015A730
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ClickMapId != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.ClickMapId);
			}
			if (this.TriggerMapId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.TriggerMapId);
			}
			if (this.detail_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.Detail);
			}
			if (this.ClickCellId != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.ClickCellId);
			}
			if (this.EffectType != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.EffectType);
			}
			if (this.SourceType != CABGOHOFGBM.MonopolyActionResultSourceTypeNone)
			{
				output.WriteRawTag(104);
				output.WriteEnum((int)this.SourceType);
			}
			if (this.TriggerCellId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.TriggerCellId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06008283 RID: 33411 RVA: 0x0015C618 File Offset: 0x0015A818
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.EffectType != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.EffectType);
			}
			if (this.TriggerCellId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TriggerCellId);
			}
			if (this.SourceType != CABGOHOFGBM.MonopolyActionResultSourceTypeNone)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.SourceType);
			}
			if (this.ClickCellId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ClickCellId);
			}
			if (this.ClickMapId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ClickMapId);
			}
			if (this.detail_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Detail);
			}
			if (this.TriggerMapId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.TriggerMapId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06008284 RID: 33412 RVA: 0x0015C6E8 File Offset: 0x0015A8E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(MonopolyActionResult other)
		{
			if (other == null)
			{
				return;
			}
			if (other.EffectType != 0U)
			{
				this.EffectType = other.EffectType;
			}
			if (other.TriggerCellId != 0U)
			{
				this.TriggerCellId = other.TriggerCellId;
			}
			if (other.SourceType != CABGOHOFGBM.MonopolyActionResultSourceTypeNone)
			{
				this.SourceType = other.SourceType;
			}
			if (other.ClickCellId != 0U)
			{
				this.ClickCellId = other.ClickCellId;
			}
			if (other.ClickMapId != 0U)
			{
				this.ClickMapId = other.ClickMapId;
			}
			if (other.detail_ != null)
			{
				if (this.detail_ == null)
				{
					this.Detail = new LOMAPIKBDJF();
				}
				this.Detail.MergeFrom(other.Detail);
			}
			if (other.TriggerMapId != 0U)
			{
				this.TriggerMapId = other.TriggerMapId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06008285 RID: 33413 RVA: 0x0015C7B4 File Offset: 0x0015A9B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06008286 RID: 33414 RVA: 0x0015C7C0 File Offset: 0x0015A9C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 50U)
				{
					if (num == 16U)
					{
						this.ClickMapId = input.ReadUInt32();
						continue;
					}
					if (num == 40U)
					{
						this.TriggerMapId = input.ReadUInt32();
						continue;
					}
					if (num == 50U)
					{
						if (this.detail_ == null)
						{
							this.Detail = new LOMAPIKBDJF();
						}
						input.ReadMessage(this.Detail);
						continue;
					}
				}
				else if (num <= 96U)
				{
					if (num == 56U)
					{
						this.ClickCellId = input.ReadUInt32();
						continue;
					}
					if (num == 96U)
					{
						this.EffectType = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 104U)
					{
						this.SourceType = (CABGOHOFGBM)input.ReadEnum();
						continue;
					}
					if (num == 112U)
					{
						this.TriggerCellId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040031FC RID: 12796
		private static readonly MessageParser<MonopolyActionResult> _parser = new MessageParser<MonopolyActionResult>(() => new MonopolyActionResult());

		// Token: 0x040031FD RID: 12797
		private UnknownFieldSet _unknownFields;

		// Token: 0x040031FE RID: 12798
		public const int EffectTypeFieldNumber = 12;

		// Token: 0x040031FF RID: 12799
		private uint effectType_;

		// Token: 0x04003200 RID: 12800
		public const int TriggerCellIdFieldNumber = 14;

		// Token: 0x04003201 RID: 12801
		private uint triggerCellId_;

		// Token: 0x04003202 RID: 12802
		public const int SourceTypeFieldNumber = 13;

		// Token: 0x04003203 RID: 12803
		private CABGOHOFGBM sourceType_;

		// Token: 0x04003204 RID: 12804
		public const int ClickCellIdFieldNumber = 7;

		// Token: 0x04003205 RID: 12805
		private uint clickCellId_;

		// Token: 0x04003206 RID: 12806
		public const int ClickMapIdFieldNumber = 2;

		// Token: 0x04003207 RID: 12807
		private uint clickMapId_;

		// Token: 0x04003208 RID: 12808
		public const int DetailFieldNumber = 6;

		// Token: 0x04003209 RID: 12809
		private LOMAPIKBDJF detail_;

		// Token: 0x0400320A RID: 12810
		public const int TriggerMapIdFieldNumber = 5;

		// Token: 0x0400320B RID: 12811
		private uint triggerMapId_;
	}
}
